package com.bawei.module_sign.http

import com.bawei.lib_common.base.BaseResponse
import com.bawei.module_sign.model.ClockModel
import com.bawei.module_sign.model.SignModel
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path
import retrofit2.http.Query

interface SignApi {

    @GET("/api/attendances/user/{userId}")
    suspend fun getSign(@Path("userId")userId:Int) : BaseResponse<SignModel>

    @POST("/api/attendances")
    suspend fun getClock(@Body body : ClockModel) : BaseResponse<ClockModel>
}